module.exports = {
  assumptions: {
    constantReexports: true
  },
  presets: [
    [
      '@babel/preset-env',
      {
        corejs: 2,
        useBuiltIns: 'usage',
        loose: true,
        modules: false
      }
    ],
    process.env.IS_VUE ? '@vue/babel-preset-jsx' : '@babel/preset-react'
  ],
  plugins: [['@babel/plugin-transform-modules-commonjs'], ['@babel/plugin-transform-object-assign']]
};
